<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<script src="js/vue.js" type="text/javascript" charset="utf-8"></script>
		<style type="text/css">
			.active{
				color: red;
			}
		</style>
	</head>
	<body>
		<div id="app">
			<img v-bind:src="imgURL " > 
<!--			<h2 :style=""{key(属性名"value(属性值)}"></h2>-->
<!--			<h2	:class="[active,l ine]"></h2>-->
			<h2 :class="{active:isActive,line:isLine}">{{message}}</h2>
			<button @click="btnClick">按钮</button>
		</div>

	<script type="text/javascript">
		const app = new Vue({
			el:'#app',
			data:{
				message:'你好啊',
				imgURL:'https://i1.hdslb.com/bfs/face/c850c18ae6b507d0ef34837f53a51090b6a7451f.jpg@68w_68h.webp',
				isActive:true,
				isLine:true
			},
			methods:{
				btnClick:function(){
					this.isActive = !this.isActive
				}
			}
		})
	</script>
	</body>
</html>
